/* ---------- RunnerFileTree ---------- */
.runner-file-tree {
    display: flex;
    width: 100%;
    height: 100%;

    .container {
        flex: 1;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .open-file {
        min-height: 32px;
        padding: 4px 0;
        margin-left: 4px;
        border-top: 1px solid var(--Colors-Use-Neutral-Border);
    }

    .file-tree {
        flex: 1;
        overflow: hidden;
        &-container {
            height: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        &-header {
            padding: 4px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .title-box {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 4px;
                .title-style {
                    white-space: nowrap;
                    color: var(--Colors-Use-Neutral-Text-3-Secondary);
                    font-size: 12px;
                    font-weight: 500;
                    line-height: 16px;
                }
            }

            .extra {
                display: flex;
                gap: 8px;
            }
        }
        &-tree {
            flex: 1;
            overflow: hidden;
            .tree-body {
                height: 100%;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                .compare-select-box {
                    height: 24px;
                    margin: 0px 12px 4px;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    .compare-select {
                        display: flex;
                        align-items: center;
                        gap: 4px;
                        flex: 1;
                        overflow: hidden;
                        .compare-select-label {
                            white-space: nowrap;
                        }
                    }
                }
            }
            .hidden-tree-body {
                display: none;
            }
        }
    }
}

/* ---------- OpenedFile ---------- */
.opened-file-header {
    color: var(--Colors-Use-Neutral-Text-1-Title);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    user-select: none;
}
.opened-file-body {
    @media screen and (min-height: 950px) {
        max-height: 220px;
    }
    max-height: 130px;
    overflow: hidden auto;
    .file-item {
        border-radius: 4px;
        padding: 3px 12px 3px 24px;
        display: flex;
        align-items: center;
        gap: 2px;
        cursor: pointer;

        .del-btn {
            width: 16px;
            height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            svg {
                display: none;
                width: 16px;
                height: 16px;
                color: var(--Colors-Use-Neutral-Text-3-Secondary);
            }
        }
        img {
            width: 16px;
            height: 16px;
        }
        .file-name {
            flex: 1;
            overflow: hidden;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            font-size: 12px;
            font-weight: 500;
            line-height: 16px;
        }

        &.active {
            background-color: var(--Colors-Use-Main-Bg);
        }
    }
    .file-item-no-active {
        &:hover {
            background-color: var(--Colors-Use-Neutral-Bg);
            .del-btn {
                svg {
                    display: block;
                }
                &:hover {
                    svg {
                        color: var(--Colors-Use-Main-Primary);
                    }
                }
            }
        }
    }
    .file-item-active {
        background-color: var(--Colors-Use-Main-Bg);
        border: 1px solid var(--Colors-Use-Main-Border);
        &:hover {
            .del-btn {
                svg {
                    display: block;
                }
                &:hover {
                    svg {
                        color: var(--Colors-Use-Main-Hover);
                    }
                }
            }
        }
    }
}

.left-side-bar {
    height: 100%;
    display: flex;
    // border-left: 1px solid var(--Colors-Use-Neutral-Border);
    // border-right: 1px solid var(--Colors-Use-Neutral-Border);

    &-list {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        background: var(--Colors-Use-Neutral-Bg);
        border-right: 1px solid var(--Colors-Use-Neutral-Border);
    }

    &-item {
        padding: 12px 4px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        cursor: pointer;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        position: relative;
        user-select: none;

        .item-text {
            color: var(--Colors-Use-Neutral-Text-1-Title);
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            writing-mode: vertical-rl;
            text-orientation: sideways-right;
            transform: rotate(180deg);
        }
        svg {
            width: 16px;
            height: 16px;
            color: var(--Colors-Use-Neutral-Text-3-Secondary);
        }
    }
    &-item:hover {
        background-color: var(--Colors-Use-Neutral-Bg-Hover);
    }

    &-item-active {
        background-color: var(--Colors-Use-Main-Primary);
        .item-text {
            color: var(--Colors-Use-Main-On-Primary);
        }
        svg {
            color: var(--Colors-Use-Main-On-Primary);
        }
    }

    &-item-disable {
        background-color: var(--Colors-Use-Neutral-Disable);
        cursor: not-allowed;
    }

    &-item-active:hover {
        background-color: var(--Colors-Use-Main-Hover);
    }

    &-content {
        flex: 1;
        overflow: hidden;
        height: 100%;
        .content-wrapper {
            width: 100%;
            height: 100%;
        }

        .hidden-content {
            display: none;
        }
    }
}
